package com.chang.bootplus.service.impl;

import com.chang.bootplus.base.utils.ApiResponse;
import com.chang.bootplus.base.utils.BeanUtil;
import com.chang.bootplus.entity.WxUser;
import com.chang.bootplus.mapper.WxUserMapper;
import com.chang.bootplus.po.WxUserPO;
import com.chang.bootplus.service.WxUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chang
 * @since 2022-01-23
 */
@Service
public class WxUserServiceImp extends ServiceImpl<WxUserMapper, WxUser> implements WxUserService {

    @Override
    public ApiResponse<Void> storage(WxUserPO po) {
        WxUser wxUser = BeanUtil.beanA2beanB(po, WxUser.class);
        save(wxUser);
        return new ApiResponse().setReMsg("存储key成功");
    }
}
